import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import { Provider } from "react-redux";
import store from "./store/index.js";
import { PersistGate } from "redux-persist/integration/react";
import { persistStore } from "redux-persist";
import "@assets/css/common.less"
import "@assets/css/alphaTab.less"
if (process.env.NODE_ENV === "development") {
  console.log("当前代码运行在开发环境");

} else if (process.env.NODE_ENV === "production") {
  console.log("当前代码运行在生产环境");
}

// 调用该方法即可将 redux store 中的状态同步到目标位置
const persistor = persistStore(store);
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    <PersistGate persistor={persistor}>
      <App />
    </PersistGate>
  </Provider>
);


